package org.example.mygobang.service;

import org.example.mygobang.model.History;
import org.example.mygobang.model.HistoryMapper;
import org.example.mygobang.model.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class MatchService {
    @Autowired
    HistoryMapper historyMapper;
    @Autowired
    UserMapper userMapper;
    public ArrayList<History> selectForUserId(int userId) {
        ArrayList<History> histories = historyMapper.getHistory(userId);
        return histories;
    }
}
